import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Box-RotatedBox-旋转容器',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Box-RotatedBox-旋转容器'),
        ),
          body: Center(
            child: Column(
              children: [
                SizedBox(
                  height: 20,
                ),
                RotatedBox
                  (quarterTurns: 1,
                  child: Text('ABCD',style: TextStyle(fontSize: 20),),),
                SizedBox(
                  height: 20,
                ),
                RotatedBox
                  (quarterTurns: 2,
                  child: Text('ABCD',style: TextStyle(fontSize: 20),),),
                SizedBox(
                  height: 20,
                ),
                RotatedBox
                  (quarterTurns: 3,
                  child: Text('ABCD',style: TextStyle(fontSize: 20),),),
                SizedBox(
                  height: 20,
                ),
                RotatedBox
                  (quarterTurns: 4,
                  child: Text('ABCD',style: TextStyle(fontSize: 20),),),

              ],
            ),
          )
      ),
    );
  }
}

